package com.zky.gulimall.product.feign;

import com.zky.common.to.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description 库存远程服务
 * @Author 张开源
 * @Date 2022/10/17 20:08
 * @Version 1.0
 **/
@FeignClient("gulimall-ware")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     */
    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockVo> getSkuHasStock(@RequestBody List<Long> skuIds);
}
